#include <stdio.h>
#include <string.h>

int main()
{
    int arr[] = {1, 2, 3, 4, 5, 6};
    size_t length = sizeof(arr) / sizeof(int);
    int copyArr[length];

    memcpy(copyArr, arr, sizeof(arr));

    for (int i = 0; i < length; i++)
    {
        printf("%d ", copyArr[i]);
    }
    printf("\n");
}